package znbkTestPaperXtfx.saveDiagnosticReportInfo;

import com.google.gson.Gson;

import java.util.List;

import znbkTestPaperRdqh.ZnbkPaperRdqhInfor;
import znbkTestPaperXtfx.ZnbkPaperXtfxInfor;

/**
 * Created by Administrator on 2018\4\3 0003.
 */

public class SaveDiagnosticReportEntityModel {

    public  static Gson gson;

    /**
     * 获取======》》》》 klgListBean
     * LastScore : 0
     * RequiredScore : 8.6
     * KnowledgeName : Let's + 动词原形 + (...)
     * OriginalScore : 0
     * ZSDNO : CD0502502Aa02CAAF
     */
    public static SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean.KlgListBean getKlgListBean(
             String LastScore,
             String RequiredScore,
             String KnowledgeName,
             String OriginalScore,
             String ZSDNO){

        SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean.KlgListBean mKlgListBean =
                new  SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean.KlgListBean();
        mKlgListBean.setLastScore(LastScore);
        mKlgListBean.setRequiredScore(RequiredScore);
        mKlgListBean.setKnowledgeName(KnowledgeName);
        mKlgListBean.setOriginalScore(OriginalScore);
        mKlgListBean.setZSDNO(ZSDNO);

        gson = new Gson();
        return mKlgListBean;
    }

    /**
     * 获取=====》》》ModelDiagnosticReportParamListBean
     * KlgList : [{"LastScore":"0","RequiredScore":"8.6","KnowledgeName":"Let's + 动词原形 + (...)","OriginalScore":"0","ZSDNO":"CD0502502Aa02CAAF"}]
     * QueID : CBAD05025DHE10600Cz
     * SubjectID : S2-English
     * GenerID : 2
     * IsRight : 0
     * TypeNO : E
     */
    public static SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean getModelDiagnosticReportParamListBean(
             String QueID,
             String SubjectID,
             String GenerID,
             int IsRight,
             String TypeNO,
             List<SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean.KlgListBean> KlgList){

        SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean mModelDiagnosticReportParamListBean =
                new  SaveDiagnosticReportEntity.ModelDiagnosticReportParamListBean();

        mModelDiagnosticReportParamListBean.setQueID(QueID);
        mModelDiagnosticReportParamListBean.setSubjectID(SubjectID);
        mModelDiagnosticReportParamListBean.setGenerID(GenerID);
        mModelDiagnosticReportParamListBean.setIsRight(IsRight);
        mModelDiagnosticReportParamListBean.setTypeNO(TypeNO);
        mModelDiagnosticReportParamListBean.setKlgList(KlgList);

        gson = new Gson();
        return mModelDiagnosticReportParamListBean;
    }


    /**
     * 获取=======》》》ModelDiagnosticReportListBean
     * AssessRightItemCount : 0
     * UpdateTime : 2018-04-02 19:07:10
     * Knowledges : []
     * PaperID : P20183261155218860
     * StuID : zxstu78
     * PaperFrom : 1
     * Duration : 6
     * CreateTime : 2018-04-02 19:07:10
     * PaperAnswerRate : 0
     * NotAnsweredItemCount : 17
     * TotalItemCount : 20
     * WrongItemCount : 20
     * SubjectID : C
     * StageNo : C
     * RightItemCount : 0
     */
     public static SaveDiagnosticReportEntity.ModelDiagnosticReportListBean getModelDiagnosticReportListBean(
              int AssessRightItemCount,
              String UpdateTime,
              String PaperID,
              String StuID,
              int PaperFrom,
              int Duration,
              String CreateTime,
              int PaperAnswerRate,
              int NotAnsweredItemCount,
              int TotalItemCount,
              int WrongItemCount,
              String SubjectID,
              String StageNo,
              int RightItemCount,
              List<?> Knowledges){

         SaveDiagnosticReportEntity.ModelDiagnosticReportListBean mModelDiagnosticReportListBean =
                 new  SaveDiagnosticReportEntity.ModelDiagnosticReportListBean();

         mModelDiagnosticReportListBean.setAssessRightItemCount(AssessRightItemCount);
         mModelDiagnosticReportListBean.setUpdateTime(UpdateTime);
         mModelDiagnosticReportListBean.setPaperID(PaperID);
         mModelDiagnosticReportListBean.setStuID(StuID);
         mModelDiagnosticReportListBean.setPaperFrom(PaperFrom);
         mModelDiagnosticReportListBean.setDuration(Duration);
         mModelDiagnosticReportListBean.setCreateTime(CreateTime);
         mModelDiagnosticReportListBean.setPaperAnswerRate(PaperAnswerRate);
         mModelDiagnosticReportListBean.setNotAnsweredItemCount(NotAnsweredItemCount);
         mModelDiagnosticReportListBean.setTotalItemCount(TotalItemCount);
         mModelDiagnosticReportListBean.setWrongItemCount(WrongItemCount);
         mModelDiagnosticReportListBean.setSubjectID(SubjectID);
         mModelDiagnosticReportListBean.setStageNo(StageNo);
         mModelDiagnosticReportListBean.setRightItemCount(RightItemCount);
         mModelDiagnosticReportListBean.setKnowledges(Knowledges);

         gson = new Gson();
         return mModelDiagnosticReportListBean;

     }

    public static SaveDiagnosticReportEntity SaveDiagnosticReportEntityXtfx(){

        SaveDiagnosticReportEntity mSaveDiagnosticReportEntity = new  SaveDiagnosticReportEntity();
        mSaveDiagnosticReportEntity.setModelDiagnosticReportList(ZnbkPaperXtfxInfor.ModelDiagnosticReportListBean);
        mSaveDiagnosticReportEntity.setModelDiagnosticReportParamList(ZnbkPaperXtfxInfor.ModelDiagnosticReportParamListBean);

        gson = new Gson();
        return mSaveDiagnosticReportEntity;
    }

    public static SaveDiagnosticReportEntity SaveDiagnosticReportEntityRdqh(){

        SaveDiagnosticReportEntity mSaveDiagnosticReportEntity = new  SaveDiagnosticReportEntity();
        mSaveDiagnosticReportEntity.setModelDiagnosticReportList(ZnbkPaperRdqhInfor.ModelDiagnosticReportListBean);
        mSaveDiagnosticReportEntity.setModelDiagnosticReportParamList(ZnbkPaperRdqhInfor.ModelDiagnosticReportParamListBean);

        gson = new Gson();
        return mSaveDiagnosticReportEntity;
    }


}
